<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

//Route::middleware('auth:api')->get('/user', function (Request $request) {
//    return $request->user();
//});


//,'middleware' => 'sign'
$router->group(['prefix' => '/'], function() use($router){
    require_once __DIR__ . DIRECTORY_SEPARATOR . 'apis' . DIRECTORY_SEPARATOR . 'common.php';
//    require_once __DIR__ . DIRECTORY_SEPARATOR . 'apis' . DIRECTORY_SEPARATOR . 'admins.php';
    require_once __DIR__ . DIRECTORY_SEPARATOR . 'apis' . DIRECTORY_SEPARATOR . 'users.php';
//    require_once __DIR__ . DIRECTORY_SEPARATOR . 'apis' . DIRECTORY_SEPARATOR . 'app.php';
    require_once __DIR__ . DIRECTORY_SEPARATOR . 'apis' . DIRECTORY_SEPARATOR . 'api.php';
    require_once __DIR__ . DIRECTORY_SEPARATOR . 'apis' . DIRECTORY_SEPARATOR . 'wxapp.php';
});
